package cn.wolfcode.p2p.business.service;

import cn.wolfcode.p2p.business.domain.Bid;
import cn.wolfcode.p2p.business.domain.ExpAccount;

import java.math.BigDecimal;

public interface IExpAccountFlowService {
    /**
     * 创建收取初始体验金流水
     * @param account
     * @param amount
     */
   void  createReceiveExperienceFlow(ExpAccount account, BigDecimal amount,String note,Integer type);

    /**
     * 体验标借款成功
     * @param title
     * @param expAccount
     * @param amount
     */
    void createFreezedSuccessFlow(String title, ExpAccount expAccount, BigDecimal amount);

    /**
     *  体验标投资成功
     * @param expAccount
     * @param amount
     * @param bidRequestTitle
     */
    void createBorrowerSuccessFreezedFlow(ExpAccount expAccount, BigDecimal amount, String bidRequestTitle);
    /*
     * 体验标投标失败
     */
    void createBidFailFlow(ExpAccount expAccount, Bid bid);

    /**
     * 退回体验金本金
     */
    void createReturnExperienceGoldPrincipal(ExpAccount expAccount, BigDecimal amount, String bidRequestTitle);

 /**
  * 回收体验金
  */
 void createRecyclingExperienceFlow(ExpAccount expAccount, BigDecimal amount, String note, Integer actionType);
}
